#include <stdio.h>

int main (void)
{
	for(int a = 0; a <= 9; a++){
		for(int b = 0;b <= 9; b++){
			int aabb = (a*10+a)*100 + (b*10+b);
			int bbaa = (b*10+b)*100 + (a*10+a);
			int b75ab6b = b*1000000 + 750000 + a*1000 + b*100 + 60 + b;
			
			if (aabb * bbaa == b75ab6b)
			{	
				printf("%d\n", b75ab6b);
				printf("a = %d b = %d", a, b);
			}	
		}
	}
	
	
	return 0;
}
